﻿using System;
using System.Linq;
using System.Data.SqlClient;
using System.Collections.Generic;

namespace Evpo.ContactData.Data
{
    internal class StatementExecutionProvider:StatementExecutionBase
    {
        internal StatementExecutionProvider(Connection conn, string procedureName) :
            base(conn, procedureName, Enumerable.Empty<SqlParameter>())
        {
        }

        internal StatementExecutionProvider(Connection conn, string procedureName, IEnumerable<SqlParameter> parameters) :
            base(conn, procedureName, parameters) { }

        #region Fields
        #endregion

        #region Properties
        #endregion

        #region Methods
        internal void ExecuteNonQuery()
        {
            if(!Connection.IsOpen)
                Connection.Open();
            Command.ExecuteNonQuery();
        }
        #endregion Methods
    }
}
